function table_idx_list = find_table_idx_for_relevant_data_sets(meas_info, Cell_type, ChillerTemp, Position, HeatedCell)

% find the table index for the reference set without heating
if strcmp(ChillerTemp, '5')
    table_idx_list = 1;
elseif strcmp(ChillerTemp, '6')
    table_idx_list = 2;
elseif strcmp(ChillerTemp, '12')
    table_idx_list = 3;
elseif strcmp(ChillerTemp, '-2')
    table_idx_list = 1;
elseif strcmp(ChillerTemp, '2')
    table_idx_list = 2;
end

% find the table indices for the data sets of interest
% meas_info{ii}(1) : cell type
% meas_info{ii}(2) : chiller temperature
% meas_info{ii}(3) : laser current [mA]
% meas_info{ii}(4) : laser heating position

Cell_idx    = find(ismember(Cell_type,HeatedCell));

for ii = 1:length(meas_info)
    if strcmp(meas_info{ii}(1),Cell_type(Cell_idx))...
            && strcmp(meas_info{ii}(2),ChillerTemp)...
            && strcmp(meas_info{ii}(4),Position)
        table_idx_list = [table_idx_list ii];
    end
end

end